This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --- Created by Ebean DDL | |
# To stop Ebean DDL generation, remove this comment and start using Evolutions | |
# --- !Ups | |
create table relation ( | |
id bigint not null, | |
user_id bigint, | |
constraint pk_relation primary key (id)) | |
; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package utils | |
import play.api.data.format.Formatter | |
import play.api.data.Mapping | |
import play.api.data.format.Formats._ | |
import play.api.data.FormError | |
import play.api.data.Forms._ | |
import play.api.data.validation.Constraint | |
import play.api.data.validation.Invalid | |
import play.api.data.validation.Valid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
# |