Skip to content

Commit

Permalink
Added support for POST (alias of PUT)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienCastex committed May 13, 2017
1 parent 0313db9 commit 3ab1441
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ It implements the following methods :
* GET (file get content)
* MKCOL (directory creation)
* PROPFIND (get file information)
* PUT (set the content of a file and create it if it doesn't exist)
* PUT/POST (set the content of a file and create it if it doesn't exist)

Find more details on the process at [https://github.com/OpenMarshal/npm-WebDAV-Server/projects/1](https://github.com/OpenMarshal/npm-WebDAV-Server/projects/1).

Expand Down
2 changes: 2 additions & 0 deletions lib/server/commands/Commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
var NotImplemented_1 = require("./NotImplemented");
var Propfind_1 = require("./Propfind");
var Mkcol_1 = require("./Mkcol");
var Post_1 = require("./Post");
var Put_1 = require("./Put");
var Get_1 = require("./Get");
exports.default = {
NotImplemented: NotImplemented_1.default,
Propfind: Propfind_1.default,
Mkcol: Mkcol_1.default,
Post: Post_1.default,
Put: Put_1.default,
Get: Get_1.default
};
2 changes: 2 additions & 0 deletions lib/server/commands/Post.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Put from './Put';
export default Put;
4 changes: 4 additions & 0 deletions lib/server/commands/Post.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Put_1 = require("./Put");
exports.default = Put_1.default;
2 changes: 2 additions & 0 deletions src/server/commands/Commands.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import NotImplemented from './NotImplemented'
import Propfind from './Propfind'
import Mkcol from './Mkcol'
import Post from './Post'
import Put from './Put'
import Get from './Get'

export default {
NotImplemented,
Propfind,
Mkcol,
Post,
Put,
Get
}
3 changes: 3 additions & 0 deletions src/server/commands/Post.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

import Put from './Put'
export default Put

0 comments on commit 3ab1441

Please sign in to comment.