From 694e9f2c97a93d02a7fbb090bcd17a73bc2900d6 Mon Sep 17 00:00:00 2001 From: Yang Zhao Date: Wed, 28 Dec 2016 14:36:04 +0000 Subject: [PATCH 1/5] =?UTF-8?q?routes=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes.rb | 13 +++++++++++++ public/pages/share.html | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index aceb849..0c11c60 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -62,4 +62,17 @@ Rails.application.routes.draw do post 'sessions' => 'sessions#create' delete 'session' => 'sessions#destroy' get 'session' => 'sessions#show' + + post 'shares' => 'shares#create' + get 'shares' => 'share#getShareList' + + get 'projects' => 'projects#index' + post 'projects' => 'projects#create' + post 'projects/users' => 'projects#addUsers' + get 'projects/detail' => 'projects#detail' + + get 'missions/project/status' => 'missions#getlist' + get 'missions/detail' => 'missions#detail' + patch 'missions/detail' => 'missions#update' + post 'missions/comments' => 'missions#commentPublish' end diff --git a/public/pages/share.html b/public/pages/share.html index f839c1e..da2fa71 100644 --- a/public/pages/share.html +++ b/public/pages/share.html @@ -259,6 +259,25 @@ + \ No newline at end of file From 4fbac0332cf6fd4e308c1dc38ebab43563fd7432 Mon Sep 17 00:00:00 2001 From: Yang Zhao Date: Wed, 28 Dec 2016 15:21:43 +0000 Subject: [PATCH 2/5] =?UTF-8?q?=E6=B3=A8=E5=86=8C=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 2 +- public/pages/login.html | 31 +--------- public/pages/register.html | 116 +++++++++++++++++++++++++++++++++++++ 3 files changed, 119 insertions(+), 30 deletions(-) create mode 100644 public/pages/register.html diff --git a/public/index.html b/public/index.html index dc51d5a..031d1e4 100644 --- a/public/index.html +++ b/public/index.html @@ -57,7 +57,7 @@