File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ package handler
2
+
3
+ import (
4
+ "net/http"
5
+
6
+ "github.com/src-d/gitbase-playground/server/serializer"
7
+ )
8
+
9
+ // Parse : placeholder method
10
+ func Parse () RequestProcessFunc {
11
+ return func (r * http.Request ) (* serializer.Response , error ) {
12
+ return nil , serializer .NewHTTPError (http .StatusNotImplemented , http .StatusText (http .StatusNotImplemented ))
13
+ }
14
+ }
15
+
16
+ // Filter : placeholder method
17
+ func Filter () RequestProcessFunc {
18
+ return func (r * http.Request ) (* serializer.Response , error ) {
19
+ return nil , serializer .NewHTTPError (http .StatusNotImplemented , http .StatusText (http .StatusNotImplemented ))
20
+ }
21
+ }
Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ func Router(
38
38
r .Post ("/query" , handler .APIHandlerFunc (handler .Query (db )))
39
39
r .Get ("/tables" , handler .APIHandlerFunc (handler .Tables (db )))
40
40
41
+ r .Post ("/parse" , handler .APIHandlerFunc (handler .Parse ()))
42
+ r .Post ("/filter" , handler .APIHandlerFunc (handler .Filter ()))
43
+
41
44
r .Get ("/version" , handler .APIHandlerFunc (handler .Version (version )))
42
45
43
46
r .Get ("/static/*" , static .ServeHTTP )
You can’t perform that action at this time.
0 commit comments