Skip to content

Commit

Permalink
changed server
Browse files Browse the repository at this point in the history
  • Loading branch information
Lim authored and Lim committed Mar 5, 2021
1 parent 31f1257 commit f837477
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:json_annotation/json_annotation.dart';
import 'dart:async';
import 'dart:convert';

String serverURL = 'https://x0-29.psych.umn.edu/lnpireceiver/posts';

@JsonSerializable(nullable: false)
Data _$DataFromJson(Map<String, dynamic> json) {
Expand Down Expand Up @@ -51,8 +52,8 @@ Future<Data> createData(
print(jsonUser);

final http.Response response = await http.post(
'https://x0-29.psych.umn.edu/dend/posts',
//'https://160.94.0.29/dend/posts',
serverURL,
//'https://x0-29.psych.umn.edu/dend/posts',
headers: <String, String>{
'Content-Type': 'application/json; charset=UTF-8',
},
Expand Down

0 comments on commit f837477

Please sign in to comment.